package com.enumtest;

/**
 * 
 * @author yachao
 *
 */
public abstract class Controller {
	private Controller(){}
	
	public static final Controller ON = new Controller(){
		public Controller downAction(){
			return OFF;
		}
		public String toString() {
			return "ON";
		};
	};
	public static final Controller OFF = new Controller(){
		public Controller downAction(){
			return ON;
		}
		public String toString() {
			return "OFF";
		};
	};
	
	public abstract Controller downAction();
		
}